from pom.user.loginpage import LoginPage
from pom.user.mainpage import MainPage
from pom.user.trogglepage import TrogglePage


class UserAction:

    def user_login(self):
        mp = MainPage()
        mp.open_troggle_page()

        import time
        time.sleep(1.5)

        tp = TrogglePage()
        tp.click_avatar()

        lp = LoginPage()
        lp.login_by_token('eb13d528-667a-4111-9905-5df1c08f1b17')

        time.sleep(1)
        lp.swipe_by_custorm('right')